package linuxbox.admin.logic;

import java.util.*;

public class UserGrpObject {
	protected int m_iID = -1;         
	protected String m_sName = null;
	protected int m_iMemberCount = 0;
	protected String m_sDesc = null;

    protected List rightList = new ArrayList();
    
	public UserGrpObject() {
		
	}
	
	public UserGrpObject(String name, int count, String desc) {
		m_sName = name;
		m_iMemberCount = count;
		m_sDesc = desc;
	}

	public UserGrpObject(int id, String name, int count, String desc) {
		m_iID = id;
		m_sName = name;
		m_iMemberCount = count;
		m_sDesc = desc;
	}

	public void copyFrom(UserGrpObject entry) {
		m_iID = entry.getID();
		m_sName = entry.getName();
		m_iMemberCount = entry.getMemberCount();
		m_sDesc = entry.getDesc();
	}

	public int getID() {
		return m_iID;
	}

	public void setID(int id) {
		m_iID = id;
	}

	public String getName() {
		return m_sName;
	}
	
	public void setName(String str) {
		m_sName = str;
	}
  
	public int getMemberCount() {
		return m_iMemberCount;
	}
	
	public void setMemberCount(int value) {
		m_iMemberCount = value;
	}

	public String getDesc() {
		return m_sDesc;
	}
	
	public void setDesc(String str) {
		m_sDesc = str;
	}

	public String dump() {
    	StringBuffer sb = new StringBuffer();
    	sb.append("id=" + m_iID);
    	sb.append("; name=" + m_sName);
    	sb.append("; mcount=" + m_iMemberCount);
    	sb.append("; desc=" + m_sDesc);
    	
    	return sb.toString();
    }
}
